import Vue from 'vue'
import App from './App.vue'
import router from './router'

//引入Vuex
import Vuex from 'vuex'

import store from "./common/store/index.js"

// 引入推送接口等等

import svcInvoke from "./common/svcinvoke"
Vue.use(svcInvoke, 'http://120.79.84.58/index.php/api/', {});

import socket from './common/websocket.js';
Vue.use(socket, 'ws://120.79.84.58:9501/id/');

import layer from 'vue-layer'
import 'vue-layer/lib/vue-layer.css';
Vue.prototype.$layer = layer(Vue);

//Element
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);


//引入分隔面板
import splitPane from 'vue-splitpane';
// use as global component
Vue.component('split-pane', splitPane);
// 引入k线相关

import echarts from 'echarts'
import jquery from 'jquery';
import Kline from 'kline';

Vue.prototype.$kline = Kline;
Vue.prototype.echarts = echarts;

window.$ = jquery;

Vue.prototype.$store = store;

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
